<?php

//include './common/home.php';
//var_dump($link);
//屏蔽notice错误
error_reporting(E_ALL ^ E_NOTICE);


//查询首页头尾显示的站点
$site = select($link,DB_TABLE_SITE,'*',"where control=0");
//var_dump($site);

$table  = DB_TABLE_LINK;
$fields = 'name';

$where  = 'where lid=1';
$data1   = select($link,$table,$fields,$where);
//var_dump($data1);

$where  = 'order by displayorder desc';
$data   = select($link,$table,$fields,$where);

//var_dump($data);


//var_dump($compere);
$vars = compact('site','data','data1');
display('tail.html',$vars);

















/*include './common/home.php';

$title = 'chat 论坛';

$data = [
	
	'姓名' => '百度',
	'性别' => '漫游平台',
	'爱好' => 'Yeswan',
	'工作' => '我的领地',
	'工作2' => '敲代码',
	
	'工作4' => '敲代码',
	
	'心情' => '复杂'

];
$data1 = '官方论坛啊啊';
$vars = compact('title','data1','data');
display('tail.html',$vars);

*/